import request from "./request"
//模态框
const bannerr = () => request.post('resources/carousel')
//login登录
const loginList = (model) => request.post('users/login', model)
//注册
const zclist=(model)=>request.post('users/register',model)
//手机模块
const getMobileList=(model)=>request.post('product/getPromoProduct',{
    categoryName:model.categoryName 
})
//家电模块
const HomeappList=(model)=>request.post('product/getHotProduct',{
    categoryName:model.categoryName
})
const HomeappListt=(model)=>request.post('product/getPromoProduct',{
    categoryName:model.categoryName
})
//家电模块
const peijianList=(model)=>request.post('product/getHotProduct',{
    categoryName:model.categoryName
})
const peijianListt=(model)=>request.post('product/getPromoProduct',{
    categoryName:model.categoryName
})
//tap栏模块
const getTaps=()=>request.post(`product/getCategory`)

//全部商品
const allshopList=(model)=>request.post('product/getAllProduct',model)
//菜单接口
const getappList=(model)=>request.post('/product/getProductByCategory',model)
export {
    bannerr,
    loginList,
    getMobileList,
    HomeappList,
    peijianList,
    getTaps,
    allshopList,
    getappList,
    HomeappListt,
    peijianListt,
    zclist
}
